package pro.lingwu.station.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pro.lingwu.station.dto.db.BusNo;
import pro.lingwu.station.dto.db.Station;

import java.util.List;

/**
 * @author @lingwu
 * @date created in 2021/11/17
 */
@Mapper
public interface BusNoMapper {

    void addBusNo(BusNo busNo);

    void rmBusNo(String id);

    BusNo findBusNoById(String id);

    void updateBusNo(BusNo busNo);

    List<BusNo> getAllBusNo();

    long getTotal();

    List<BusNo> findBusNoByStation(@Param("start") String start, @Param("end") String end);

    List<BusNo> findBusNo(@Param("busNo")BusNo busNo,
                          @Param("start")String start,
                          @Param("end")String end);
}
